package com.example.mapper;

import com.example.entity.Activity;
import org.apache.ibatis.annotations.Delete;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface ActivityMapper {
    List<Activity> selectAll(Activity activity);

    void insert(Activity activity);


    void updateById(Activity activity);

    @Delete("delete from `activity` where id=#{id}")
    void deleteById(Integer id);


    @Select("select * from activity where id=#{id}")
    Activity selectById(Integer id);
}
